feat: database cleaner - #725
Conversation
Delete inactive players and their accounts after a long period of inactivity. It also cleans znote accounts for our offical crystal server account creator. You can configure the level range and inactivity time at database_cleaner.lua There is a ignoredNames sample list where you can add which characters you do not wish to auto-delete no matter what. This system has been tested for a while in rookgaardtales.com now available for crystal server.
|
I think the config in lua need to be moved inside |
My bad, sorry, It's done. I put there and forgot to move inside the function. |
|
We're not going to merge, there are safer alternatives through phpMyAdmin itself. |
Alright man, still useful, but I understand |
Uh I know it's closed but I made a safer version in case someone wants to try: https://pastecode.io/s/e4bu33fr Note: Put the: Outside so the global event again so, isn't even called if set false, just to avoid starting it without do nothing. |
Delete inactive players and their accounts after a long period of inactivity. It also cleans znote accounts for our offical crystal server account creator.
You can configure the level range and inactivity time at database_cleaner.lua
There is an ignoredNames sample list where you can add which characters you do not wish to auto-delete no matter what.
This system has been tested for a while in rookgaardtales.com now available for crystal server.